package com.umpay.dto.merBusi.req.consume;

import com.umpay.annotation.Pattern;
import com.umpay.dto.merBusi.req.CommonBusiReq;
import org.hibernate.validator.constraints.NotEmpty;

	/**
	 * @ClassName: ConsumeScancodeMainBusiReq  
	 * @Description: 扫码主扫请求类
	 * @author liuhaidong  
	 * @date  2018-3-23
	 */
	public class ConsumeScancodeMainBusiReq extends CommonBusiReq{
		
		@NotEmpty(message = "商户号不能为空")		
		@Pattern(message = "商户号格式不正确")
		private String merId;
		@NotEmpty(message = "后台通知地址不能为空")	
		@Pattern(message = "后台通知地址格式不正确")
		private String notifyUrl;
		@NotEmpty(message = "交易号不能为空")		
		@Pattern(message = "交易号格式不正确")
		private String tradeNo;	//联动交易号
		@NotEmpty(message = "支付交易流水号不能为空")		
		@Pattern(message = "支付交易流水号格式不正确")
		private String merTrace;	//支付交易流水
		@NotEmpty(message = "支付类型不能为空")		
		@Pattern(message = "支付类型格式不正确")
		private String payType;	//支付方式
		@NotEmpty(message = "金额不能为空")		
		@Pattern(message = "金额格式不正确")
		private String amount;	//金额
		@Pattern(message = "二维码有效期格式不正确")
		private String expireTime;	//二维码有效期
		@Pattern(message = "备注信息格式不正确")
		private String remark;	//备注信息
		@NotEmpty(message = "业务产品号不能为空")		
		@Pattern(message = "业务产品号格式不正确")
		private String bProductId;	//变长8	业务产品号
		@NotEmpty(message = "支付产品不能为空")		
		@Pattern(message = "支付产品格式不正确")
		private String pProductId;	//定长8	产品号
		@Pattern
		private String goodsInf;
		@Pattern
		private String goodsId;
		public String getMerId() {
			return merId;
		}
		public void setMerId(String merId) {
			this.merId = merId;
		}
		public String getNotifyUrl() {
			return notifyUrl;
		}
		public void setNotifyUrl(String notifyUrl) {
			this.notifyUrl = notifyUrl;
		}
		public String getTradeNo() {
			return tradeNo;
		}
		public void setTradeNo(String tradeNo) {
			this.tradeNo = tradeNo;
		}
		public String getMerTrace() {
			return merTrace;
		}
		public void setMerTrace(String merTrace) {
			this.merTrace = merTrace;
		}
		public String getPayType() {
			return payType;
		}
		public void setPayType(String payType) {
			this.payType = payType;
		}
		public String getAmount() {
			return amount;
		}
		public void setAmount(String amount) {
			this.amount = amount;
		}
		public String getExpireTime() {
			return expireTime;
		}
		public void setExpireTime(String expireTime) {
			this.expireTime = expireTime;
		}
		public String getRemark() {
			return remark;
		}
		public void setRemark(String remark) {
			this.remark = remark;
		}
		public String getbProductId() {
			return bProductId;
		}
		public void setbProductId(String bProductId) {
			this.bProductId = bProductId;
		}
		public String getpProductId() {
			return pProductId;
		}
		public void setpProductId(String pProductId) {
			this.pProductId = pProductId;
		}
		
		public String getGoodsInf() {
			return goodsInf;
		}
		public void setGoodsInf(String goodsInf) {
			this.goodsInf = goodsInf;
		}
		
		public String getGoodsId() {
			return goodsId;
		}
		public void setGoodsId(String goodsId) {
			this.goodsId = goodsId;
		}
		@Override
		public String toString() {
			return "ConsumeScancodeMainBusiReq [merId=" + merId + ", notifyUrl=" + notifyUrl + ", tradeNo=" + tradeNo
					+ ", merTrace=" + merTrace + ", payType=" + payType + ", amount=" + amount + ", expireTime="
					+ expireTime + ", remark=" + remark + ", bProductId=" + bProductId + ", pProductId=" + pProductId
					+ ", goodsInf=" + goodsInf + ", goodsId=" + goodsId + "]";
		}
	}
		